<?php

namespace app\model;

use think\Model;

class UserClassModel extends Model
{
    protected $table = "user_class";
    protected $pk = "user_class_id";

    public function userTable() {
        return $this->hasOne("UserModel","user_id","user_id");
    }
    public function classTable() {
        return $this->hasOne("ClassModel","class_id","class_id");
    }
}